﻿/**********************************************************************
 * @file   OperatorsSaveAs.h
 * @brief  工程另存为操作器
 * @author liuzhonghua (liuzhonghuaszch@163.com)
 * @date   2024-11-21
 *********************************************************************/
#ifndef _OperatorsSaveAs_H
#define _OperatorsSaveAs_H

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"

namespace ModelOper
{
    /**
     * @brief 工程另存为操作器
     * @author liuzhonghua (liuzhonghuaszch@163.com)
     * @date   2024-11-21
     */
    class OperatorsSaveAs :public Core::FITKActionOperator
    {
        Q_OBJECT;
    public:
        /**
         * @brief Construct a new Operators SaveAs object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-11-21
         */
         explicit OperatorsSaveAs() = default;
         /**
          * @brief Destroy the Operators SaveAs object
          * @author liuzhonghua (liuzhonghuaszch@163.com)
          * @date   2024-11-21
          */
         virtual ~OperatorsSaveAs() = default;
         /**
          * @brief 执行界面操作
          * @return true     执行成功
          * @return false     执行失败
          * @author liuzhonghua (liuzhonghuaszch@163.com)
          * @date   2024-11-21
          */
         virtual bool execGUI() override;
         /**
          * @brief 执行读入操作
          * @return true     执行成功
          * @return false     执行失败
          * @author liuzhonghua (liuzhonghuaszch@163.com)
          * @date   2024-11-21
          */
         virtual bool execProfession() override;
 
    private slots:
        /**
         * @brief 读取线程结束执行该槽函数
         * @author LiBaojun (libaojunqd@foxmail.com)
         * @date 2024-03-26
         */
        void ioThreadFinishedSlot();

    };

    // 按钮注册相关操作
    Register2FITKOperatorRepo(actionSaveAs, OperatorsSaveAs);
}

#endif